package cn.rongdao.jrkabao.ui.remind.adapter;

import android.content.Context;
import android.view.ViewGroup;

import com.mifengkong.frtools.inputmethod.FRView;
import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerAdapter;

import java.util.ArrayList;
import java.util.List;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.remind.RemindBean;
import cn.rongdao.jrkabao.util.GetDefaultDataUtil;

/**
 * Created by jack on 2017/9/11
 */

public class RemindAdapter extends FRBaseRecyclerAdapter<RemindBean.RemindBankList, RemindViewHolder> {

    public RemindAdapter(Context context, OnItemClickListener<RemindViewHolder> listener) {
        super(context, listener);
    }

    private RemindViewHolder.OnRemindItemClickListener onRemindItemClickListener;

    @Override
    public RemindViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new RemindViewHolder(FRView.inflateLayout(getContext(), R.layout.item_remind, parent, false),onRemindItemClickListener);
    }

    public List<RemindBean.RemindBankList> getExampleList() {
        List<RemindBean.RemindBankList> list = new ArrayList<>();
        list.add(GetDefaultDataUtil.getExampleBean());
        return list;
    }

    public void setOnRemindItemClickListener(RemindViewHolder.OnRemindItemClickListener onRemindItemClickListener) {
        this.onRemindItemClickListener = onRemindItemClickListener;
    }
}